package kr.hyunist.androidcomplete02saeildamil.ch20;

import kr.hyunist.androidcomplete02saeildamil.*;
import android.app.*;
import android.os.*;
import android.view.*;

public class NameGenderFragment extends DialogFragment {
	static NameGenderFragment newInstance(int style, int theme){
		NameGenderFragment df = new NameGenderFragment();
		
		Bundle args = new Bundle();
		args.putInt("style", style);
		args.putInt("theme", theme);
		df.setArguments(args);
			
		return df;
		
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		int style = getArguments().getInt("style");
		int theme = getArguments().getInt("theme");
		
		setStyle(style, theme);
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View root = inflater.inflate(R.layout.namegenderfragment, container, false);
				
		return root;
	}
	
	/*@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		Dialog dialog = new Dialog(getActivity());
		dialog.setContentView(R.layout.namegenderfragment);
		
		return dialog;
	}
*/
	
	
	
}
